﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%--Delete--%>
     <% using (Ajax.BeginForm("Delete", "ChuHang", new AjaxOptions { UpdateTargetId = "list_ChuHang", OnSuccess = "ProcessResponse" }, new { name = "FormDelete" }))
   { 
        %>

            <%: Html.TextBox("idChuHang", "", new { style = "display:none;" })%>
            <input type="submit" name="btnDelete" style="display:none" />
        <%
   }
     %>

    <%--Edit--%>
     <% using (Ajax.BeginForm("Edit", "ChuHang", new AjaxOptions { UpdateTargetId = "formadd", OnSuccess = "ProcessResponse" }, new { name = "FormEdit" }))
   { 
        %>
            <%: Html.TextBox("khachhang_sendedit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("pagesize_sendedit", "50", new { style = "display:none;" })%>
            <%: Html.TextBox("page_sendedit", "1", new { style = "display:none;" })%>
            <%: Html.TextBox("idChuHang_Edit", "", new { style = "display:none;" })%>
            <input type="submit" name="btnEdit" style="display:none" />
        <%
   }
     %>

      <%--OK--%>
     <% using (Ajax.BeginForm("OK", "ChuHang", new AjaxOptions { UpdateTargetId = "list_ChuHang", OnSuccess = "ProcessResponse" }, new { name = "FormOK" }))
   { 
        %>

            <%: Html.TextBox("idChuHang_OK", "", new { style = "display:none;" })%>
            <input type="submit" name="btnOK" style="display:none" />
        <%
   }
     %>

         <%--Load limit page--%>
     <% using (Ajax.BeginForm("LoadLimitPage", "ChuHang", new AjaxOptions { UpdateTargetId = "list_ChuHang", OnSuccess = "ProcessResponse_LoadLimitPage" }, new { name = "FormLoadLimitPage" }))
   { 
        %>
            <%: Html.TextBox("khachhang_limit", "", new { style = "display:none;" })%>
            <%: Html.TextBox("pagesize", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadLimitPage" style="display:none" />
        <%
   }
     %>
 <%--Load page--%>
     <% using (Ajax.BeginForm("LoadPage", "ChuHang", new AjaxOptions { UpdateTargetId = "list_ChuHang", OnSuccess = "ProcessResponse_LoadPage" }, new { name = "FormLoadPage" }))
   { 
        %>
            <%: Html.TextBox("khachhang_paging", "", new { style = "display:none;" })%>
            <%: Html.TextBox("page", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadPage" style="display:none" />
        <%
   }
     %>
     <%--Load page Search--%>
     <% using (Ajax.BeginForm("LoadPageSearch", "ChuHang", new AjaxOptions { UpdateTargetId = "list_ChuHang", OnSuccess = "ProcessResponse_LoadPageSearch" }, new { name = "FormLoadPageSearch" }))
   { 
        %>
            <%: Html.TextBox("khachhang", "", new { style = "display:none;" })%>
            <input type="submit" name="btnLoadPageSearch" value="send" style="display:none" />
        <%
   }
     %>
      